import type { RouteRecordRaw } from 'vue-router';

import { BasicLayout } from '#/layouts';
import { $t } from '#/locales';

const routes: RouteRecordRaw[] = [
  {
    component: BasicLayout,
    meta: {
      icon: 'lucide:settings',
      order: 2,
      title: $t('page.menu.sys'),
    },
    name: 'Sys',
    path: '/sys',
    children: [
      {
        name: 'Config',
        path: '/sys/config',
        component: () => import('#/views/sys/config/index.vue'),
        meta: {
          affixTab: true,
          icon: 'lucide:life-buoy',
          title: $t('page.menu.config'),
        },
      },
      {
        name: 'Items',
        path: '/sys/items',
        component: () => import('#/views/sys/items/index.vue'),
        meta: {
          icon: 'lucide:server-cog',
          title: $t('page.menu.items'),
        },
      },
    ],
  },
];

export default routes;
